package com.net.xpay.common.domain;

import com.net.common.domain.CommonDomain;
import com.net.xpay.common.enums.DataSnapType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 数据快照
 */
@Getter
@Setter
@NoArgsConstructor
public class DataSnap extends CommonDomain {

    @ApiModelProperty(notes = "数据快照 json格式")
    private String data;

    @ApiModelProperty(notes = "数据类型")
    private DataSnapType type;

    @ApiModelProperty(notes = "关联id")
    private Long relatedId;

    public static DataSnap getInstance() {
        return new DataSnap();
    }
}
